package cn.com.server.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author qing
 * @since 2017-11-15
 */
@SuppressWarnings("serial")
public class Resource implements Serializable {


   /**
     * 主键
     */
	private Long id;
   /**
     * 资源名
     */
	private String name;
   /**
     * 权限
     */
	private String permission;
   /**
     * 请求连接
     */
	private String url;
   /**
     * 状态，1正常
     */
	private Integer status;
   /**
     * 备注
     */
	private String renark;
   /**
     * 创建时间
     */
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getRenark() {
		return renark;
	}

	public void setRenark(String renark) {
		this.renark = renark;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}